package com.ai.module.user.controller;

import com.ai.module.chat.common.ano.NoAuth;
import com.ai.module.business.domain.req.ImageAnalyzeReq;
import com.ai.module.user.domain.vo.ImageAnalyzeVo;
import com.ai.module.user.service.UserImageAnalyzeService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: heJinQin
 * @create: 2024-03-10 00:21
 * @description: 图片分析接口
 **/
@RestController
@RequestMapping("/member/imageAnalyze")
@Api(tags = "用户会员中心")
public class ImageAnalyzeController {

    @Autowired
    private UserImageAnalyzeService imageAnalyze;

    @PostMapping("/imageAnalyze")
    @NoAuth
    @ApiOperation(value = "", hidden = true)
    public List<String> imageAnalyze(@RequestBody ImageAnalyzeReq imageAnalyzeReq) {

        return imageAnalyze.imageAnalyze(imageAnalyzeReq);
    }

    @PostMapping("/imageAnalyzeList")
    @ApiOperation(value = "", hidden = true)
    public Page<ImageAnalyzeVo> imageAnalyzeList(@RequestBody ImageAnalyzeReq imageAnalyzeReq) {

        return imageAnalyze.imageAnalyzeList(imageAnalyzeReq);
    }


}
